<%@page language="Java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="includes/head.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Zaloguj</title>
</head>
<body>
	<f:view>
		<span id="whole-page-wrapper">
			<div id="wrapper" align="center">
			<%@include file="includes/header.jsp" %>
			<%@include file="includes/menu.jsp" %>	
					
				<div id="content">
					<div id="szukajka">
						 <h:form>
							 <h3>Podaj dane do logowania:</h3><br>
							 <div class="leftAlignedForm">
								<h3>Login:</h3>
								<fieldset>
				                    <h:inputText label="login" required="true" value="#{user.login}"
				            	        id="login" requiredMessage="Proszę podać login" >
				                    </h:inputText>
				                    <h:message for="login" /> 
			                    </fieldset>
			                    <h3>Hasło:</h3>
			                    <fieldset>
				                    <h:inputSecret label="haslo" required="true" value="#{user.password}"
				                    id="password" redisplay="true" requiredMessage="Proszę podać hasło">
				                    </h:inputSecret>
				                    <h:message for="password" />
			                    </fieldset><br>
			                    <fieldset>
				                  <h:commandButton value="Zaloguj" action="#{user.log_in}"/>
				                </fieldset>
			                </div>
						 </h:form>
					</div>
					
					<div id="inner-content-wyszukiwanie">
						<h2>Nie masz jeszcze konta? Zarejestruj się!</h2>
						<a href="register.jsp"> Rejestracja </a>
					</div>
				</div>
				<%@include file="includes/footer.jsp" %>
			</div>
		</span>
	</f:view>
</body>
</html> 